﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySoftWare.MVCCommon.Repository;
using MySoftWare.BaseModel;
using MySoftWare.DataCommon;

namespace MySoftWare.MVCCommon.Services
{
    public class MenuServices:IMenuRepository
    {
        public  List<MenuModel> GetSysMenuList()
        {
            return MenuAccessor.GetSysMenuList();
        }

        public  List<MenuModel> GetMenuChild(string MenuID)
        {
            return MenuAccessor.GetMenuChild(MenuID);
        }

        public  List<TreeMenuModel> GetSysMenuList(int ParentID)
        {
            return MenuAccessor.GetTreeMenuList(ParentID);
        }
    }
}
